// Copyright DustedPixels.com 2008. All rights reserved.

package com.dustedpixels.jasmin.unit.math;

import com.dustedpixels.jasmin.unit.Unit;

/**
 * Checks if input is zero.
 * 
 * @author micapolos@gmail.com (Michal Pociecha-Los)
 */
public final class ZeroChecker32 implements Unit {

  // (input) input 1
  public int IN;
  
  // (output) output: 0 if (input = 0), 1 if (input != 0);
  public int OUT;

  public void updateEndPoints() {
    OUT = (IN == 0) ? 0 : 1;
  }
}
